// D3DDeviceDrvTexture2D.h (c) 2011 JV Software

//
// D3DTexture2D
//
class D3DTexture2D : public FTexture {
public:
	virtual void					InitAsDepthStencilTexture( int width, int height );

	void							InitFromBuffer( FTextureHeader_t *header );

	void							SetName( FString name ) { _name = name; };

	virtual void					*InternalHandle( void ) { return texture2D; };

	virtual void					Destroy( void );

	FString							&GetName( void ) { return _name; };

	D3D11_TEXTURE2D_DESC			GetDesc() { return descTex; };
private:
	ID3D11Texture2D*                texture2D;
	ID3D11ShaderResourceView*		textureResourceView;
	D3D11_TEXTURE2D_DESC			descTex;
	FString							_name;
};